package com.text.demmongodb.service;

import com.text.demmongodb.entity.User;

/**
 * @ClassName UserService
 * @Author By wen
 * @Description
 * @Date 2023/10/30 15:36
 * @Version 1.0
 */
public interface UserService {

    /**
     * 新增
     * @param user
     * @return
     */
    String insert(User user);

    /**
     * 更新密码
     * @param user
     * @return
     */
    String updateUserInfo(User user);

    /**
     * 根据id获取user
     * @param user
     * @return
     */
    String getById(User user);

    String getListByAge(User user);


    String deleteById(User user);

    /**
     * 分页api
     * @return
     */
    String getList();
}
